﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.LogicalGroups.CUiLGRCreateGroupCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows.Forms;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.LogicalGroups;

public sealed class CUiLGRCreateGroupCmd : TxButtonCommand
{
  private CApLGRLogicalGroupsEnabler m_groupsEnabler;

  public CUiLGRCreateGroupCmd() => this.m_groupsEnabler = new CApLGRLogicalGroupsEnabler();

  public virtual void Execute(object cmdParams) => ((Control) new CUiLGRCreateGroupForm()).Show();

  public virtual string Category => LGRLogicalGroupResource.LOGICAL_GROUP_CATEGORY;

  public virtual string Name => LGRLogicalGroupResource.CREATE_GROUP_CMD_NAME;

  public virtual string Tooltip => LGRLogicalGroupResource.CREATE_GROUP_CMD_TOOLTIP;

  public virtual string Description => LGRLogicalGroupResource.CREATE_GROUP_CMD_DESCRIPTION;

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_groupsEnabler;

  public virtual string Bitmap => "LogicalGroups.Resources.CreateFromGroup.bmp";

  public virtual bool Licensed => TxCommandLicenser.LogicalGroupsLicense;

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("CreateGroup");
}
